import java.util.LinkedList;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;


public class ClassObject {

		public static LinkedList<Student> studentList = new LinkedList<Student>();
		public static LinkedList<Test> testList = new LinkedList<Test>();
		public static Teacher currentTeacher;
		public int courseNum;
		
		public ClassObject(String CT, int classNumber) {
			
			currentTeacher = getTeacher(CT);
			courseNum = classNumber;
			
		}
		
		public static void addTest(String newTest) {
			
			testList.add(new Test(new LinkedList<String>(), new LinkedList<String>()));
			
		}
		
		public static void addStudent(String newStudent) {
			
			studentList.add(new Student(newStudent, "no email registered"));
			
		}
		
		public static void removeTest(String byeTest) {
			
			testList.remove(byeTest);
			
		}
		
		public static void removeStudent(String byeStudent) {
			
			studentList.remove(byeStudent);
			
		}
		
		//added methods 9/22/09 dustin k. scott
		
		public Teacher getTeacher(String teacherName){
			
			if (User.verifyUser(teacherName, 'T')){
				return new Teacher(teacherName, "no email registered");
			}
			else{
				return null;
			}
		}
		
		
		
}
